<?php
	include_once("db/UserDAO.inc");
	include_once("db/AuditLogs.inc");
	
	$uid = $_REQUEST["uid"];
	
	AuditLogs::insertLog(User::getUser($_SESSION["uid"])->username, 'admin - delete user', User::getUser($uid)->username);
	User::deleteUser($uid);
	
	header("Location: .");
?>